package graduation.project.utilities;
import graduation.project.*;
import graduation.project.body.*;
import graduation.project.exception.NonExpressionException;
public class Test {
	public static void main(String args[]){
		String expression = "(a+b)(c+!d)";
		try {
			OriginExpression oe = new OriginExpression(expression);
			System.out.println("toString():"+oe.toString());
			System.out.println("toDNF():"+oe.toDNF(expression));
			System.out.println("toIDNF():"+oe.toIDNF(oe.toDNF(expression)));
			
		} catch (NonExpressionException e) {
			// TODO Auto-generated catch blockX
			e.printStackTrace();
		}
	}
}
